package com.three.lab.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ActivityMsgBean implements Parcelable {

    private int id;
    private String type;
    private String time;
    private String name;
    private String des;
    private String tips;
    private boolean isEnd;

    public ActivityMsgBean() {
    }

    public ActivityMsgBean(int id, String type, String time, String name, String des, String tips, boolean isEnd) {
        this.id = id;
        this.type = type;
        this.time = time;
        this.name = name;
        this.des = des;
        this.tips = tips;
        this.isEnd = isEnd;
    }

    protected ActivityMsgBean(Parcel in) {
        id = in.readInt();
        type = in.readString();
        time = in.readString();
        name = in.readString();
        des = in.readString();
        tips = in.readString();
        isEnd = in.readByte() != 0;
    }

    public static final Creator<ActivityMsgBean> CREATOR = new Creator<ActivityMsgBean>() {
        @Override
        public ActivityMsgBean createFromParcel(Parcel in) {
            return new ActivityMsgBean(in);
        }

        @Override
        public ActivityMsgBean[] newArray(int size) {
            return new ActivityMsgBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public boolean isEnd() {
        return isEnd;
    }

    public void setEnd(boolean end) {
        isEnd = end;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(type);
        dest.writeString(time);
        dest.writeString(name);
        dest.writeString(des);
        dest.writeString(tips);
        dest.writeByte((byte) (isEnd ? 1 : 0));
    }
}
